<?php

echo '<fieldset><legend>Dados</legend>';
echo $this->Form->create('Sala');
echo $this->Form->input('id');
echo $this->Form->input('nome',array('type' => 'text', 'class' => 'tamanho50', 'label' => __('Nome'), 'maxlength' => 100)); 
echo $this->Form->input('piso_id',array('type'=>'select','options'=>$pisos, 'empty'=>'Selecione..', 'label'=> __('Piso')));
echo '<div class="botoes_form">';
echo $this->Form->button('Salvar', array('type' => 'submit'));
echo $this->Form->button('Voltar', array('type'=>'button', 'onClick' => "javascript:location='{$this->request->base}/{$this->request->controller}/index'"));
echo '</div>'; 
echo $this->Form->end();
echo '</fieldset>';